<?php



namespace App\Http\Requests\Company;



use Illuminate\Support\Facades\Auth;

class StyleRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'title' => 'required|max:6',
            'description' => 'required',

        ];
    }

    public function messages()
    {
        return [
            'title.required' => __('请输入风格的简称'),
            'description.required' => __('请输入风格的简单介绍'),

        ];
    }

    public function filldata()
    {


        $user = Auth::user();
        return [
            'title'=>(string)$this->input('title'),
            'description'=>(string)$this->input('description'),
            'company_id'=>(int)$user['login_company_id'],




        ];
    }
}
